<template>
  <div class="itemContent">
    <div class="right">
      <p class="name">{{ data.series_name }}</p>
      <p class="score">{{ data.name }}</p>
      <p class="price">指导价:{{ data.price }}</p>
      <p class="_right"><span>问底价</span></p>
    </div>
  </div>
</template>

<script>
import { reactive, toRefs } from "vue";
export default {
  props: {
    lineCar: {
      type: Object,
      default: {},
    },
  },
  setup(props) {
    const state = reactive({
      data: {},
    });
    // console.log(props.lineCar);
    state.data = props.lineCar.info;
    // console.log(state.data);
    return {
      ...toRefs(state),
    };
  },
};
</script>

<style lang="less" scoped>
.itemContent {
  position: relative;
   background: #efefef;
  border: 1px solid #ebeef5;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 25%);
  width: 100%;
  padding: 10px 10px;
  margin: 10px auto;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  .right {
    text-align: left;
    .name {
      font-size: 18px;
      line-height: 24px;
    }
    .score {
      font-size: 12px;
      line-height: 18px;
    }
    .price {
      font-size: 14px;
      line-height: 20px;
    }
    ._right {
      border-radius: 5px;
      position: absolute;
      right: 20px;
      top: 15px;
      line-height: 22px;
      font-size: 16px;
      background: #dbdbdb;
      padding: 5px;
    }
  }
}
p {
  margin: 0;
}
</style>